package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Role;

import java.util.List;


public interface RoleService {
    //新增
    void add(Role role,Integer[] permissionIds,Integer[] menuIds);
    List<Role> findAll();
    //根据分页查询
    PageResult findByPage(QueryPageBean queryPageBean);



    //编辑
    Role findById(Integer id);

    List<Integer> findPermissionIdsById(Integer id);

    List<Integer>findMenuById(Integer id);
    void edit(Role role,Integer[] permissionIds);

    //删除
    void delById(Integer id);
}
